import VueRouter from 'vue-router'
import Vue from 'vue'
Vue.use(VueRouter);
import Login from './components/Login.vue';
import Home from './components/Home.vue';
import Admin from './components/Admin.vue';
import Article from './components/Article.vue';
import ArticleInfo from './components/ArticleInfo.vue';
const routes = [{
		path: '/Login',
		component: Login
	},
	{
		path: '/',
		component: Home,
		children: [{
			path: '/admin',
			component: Admin
		}, {
			path: '/article',
			component: Article
		}, {
			path: '/articleInfo',
			component: ArticleInfo
		}, ]
	}
]
const router = new VueRouter({
	mode:'history',
	routes
})

export default router;
